package com.glink.common.enums;

/**
 * @author lzh
 * @since 2022-06-15
 */
public enum ResponseCodeEnum {

    REPEAT_REQUEST_ERROR("200012", "接口重放异常"),
    
    /**
     * token已过期
     */
    TOKEN_EXPIRED("300002", "token已过期或不正确"),


    /**
     * token缺失
     */
    TOKEN_MISSION("300003", "token缺失或错误"),

    /**
     * 验证token失败
     */
    VERIFY_TOKEN_FAIL("300004", "验证token失败"),

    USER_NOT_FOUND("300005", "用户信息不存在"),
    
    AUTH_URL("300006", "访问了系统接口，但无权限"),
    AUTH_ROLE("300010", "用户角色信息不存在"),
    AUTH_ORG("300011", "用户所属组织不存在"),
    LOGIN("300007", "登录了系统"),
    CREATE_PATROL_TASK("300008", "创建了例行巡视任务"),
    UPLOAD_ALGORITHM_VERSION("300009", "上传了智能巡视算法新版本");

    private String status;

    private String message;

    ResponseCodeEnum(String status, String message) {
        this.status = status;
        this.message = message;
    }

    public String getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }
}
